package com.lyhlmj.oop_client.Style.Buttons.LoginFrameButton;

import com.lyhlmj.oop_client.Frames.LoginAndRegister.RegisterFrame.RegisterFrame;
import com.lyhlmj.oop_client.Style.Buttons.GeneralButton;

import java.awt.*;

public class RegisterButton extends GeneralButton {
    private Window owner;

    public RegisterButton(String str, Window owner) {
        super(str);
        this.owner = owner;
    }

    //进去注册界面
    public void doRegister() {
        owner.dispose();  //销毁登陆框架
        RegisterFrame.initial();  //进入五子棋注册框架
    }
}
